/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package heitor.hosts.bean;

import heitor.hosts.servicos.ContasPagar;
import heitor.hosts.servicos.DAOJPAContasPagar;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;


/**
 *
 * @author heitorsantos
 */
@ManagedBean
public class TitulosBean implements Serializable{
    
    private DAOJPAContasPagar dao = new DAOJPAContasPagar();
    private List<ContasPagar> titulosliberar;
    
    
    @PostConstruct 
    public void construct() {  
        //code  
        titulosliberar = dao.getByEmissao("20140801"); 
    }  
    
    
    public List<ContasPagar> getTitulos(){
          
        
        //titulosliberar = dao.getByEmissao("20140801");
        
        return  titulosliberar;
    }
    
}
